#!/usr/bin/env bash

#Please look at hosts.dat file to know the hostnames of the IPs used below

router_ip="10.99.65.130"

if [ "$1" == "r" ]
then
 java -cp lib/log4j-1.2.16.jar:build/classes router.Router 10.203.31.156:10.212.170.229:10.202.63.141:10.114.25.17:10.212.187.224
elif [ "$1" == "0" ] || [ "$1" == "1" ] || [ "$1" == "2" ] || [ "$1" == "3" ] || [ "$1" == "4" ]
then
 java -cp lib/log4j-1.2.16.jar:build/classes client.Client $router_ip 9999 $1 0
fi